{% extends "djdb/internal_page.html" %}

{% load common_extras %}
{% load djdb_extras %}

{% block breadcrumbs %}
<a href="/">chipradio home</a> /
<a href="/djdb/">DJ Database home</a>
{% endblock %}

{% block content %}

<form action="/djdb/activity" method="post">
  {{ form }}
  <input type="submit" name="search" value="Search"/>
  <br/>
  <input type="submit" name="prev" onclick="document.paging.bookmark.value='{{ prev }}'" value="Previous Page"/>
  <input type="submit" name="next" onclick="document.paging.bookmark.value='{{ next }}'" value="Next Page"/>
  <input type="hidden" name="start_dt" value="{{ start_dt|date:"Y-m-d" }}"/>
</form>

<h3>Activity for {{ start_dt|date:"D F j, Y" }}:</h3>

{% if recent_activity %}
  {% for dt, items in recent_activity %}
{{ dt|date:"D F j, Y P" }}
<ul class="activity">
    {% for type, item in items %}
  <li class="activity_{{ type }}">{{ item|safe }}</li>
    {% endfor %}
</ul>
  {% endfor %}
{% else %}
  No activity.
  <br/><br/>
{% endif %}

<form action="/djdb/activity" method="post">
  <input type="submit" name="prev" onclick="document.paging2.bookmark.value='{{ prev }}'" value="Previous Page"/>
  <input type="submit" name="next" onclick="document.paging2.bookmark.value='{{ next }}'" value="Next Page"/>
  <input type="hidden" name="start_dt" value="{{ start_dt|date:"Y-m-d" }}"/>
</form>

{% endblock %}
